<div class="title">
	<h1>Edit Portfolio Item</h1>
	<div>
	    <ul>
		<li><a href="#" rel="#overlay">Get Help With This Page</a></li>
		<li><?php echo anchor('module_manager/admin', 'Manage'); ?></li>
		<li><?php echo anchor('module_manager/admin/add', 'Install a Module'); ?></li>
	    </ul>
	</div>
	<div class="clear"></div>
</div>

<div>
	<form method="POST">
		<table cellspacing="1" cellpadding="1" width="700px">
			<tr><td width="200">Item Name: </td><td><input type="text" name="item_name" class="form" value="<?php echo $item['item_name']; ?>"/></td><td><?php echo form_error('item_name'); ?></td></tr>
			<tr><td>Url: </td><td><input type="text" name="item_url" class="form" value="<?php echo $item['item_url']; ?>"/></td><td><?php echo form_error('item_url'); ?></td></tr>
			<tr><td>Description: </td><td><textarea name="item_description" class="form" cols="70" rows="15"><?php echo $item['item_description']; ?></textarea></td><td><?php echo form_error('item_description'); ?></td></tr>
			<tr><td>Picture Name: </td><td><input type="text" name="item_picture_name" class="form" value="<?php echo $item['item_picture_name']; ?>"/></td><td><?php echo form_error('item_picture_name'); ?></td></tr>
			<tr><td>Picture Extension: </td><td><input type="text" name="item_picture_extension" class="form" value="<?php echo $item['item_picture_extension']; ?>"/></td><td><?php echo form_error('item_picture_extension'); ?></td></tr>
			<tr><td colspan="3"><input type="submit" value="Edit Item" /></td></tr>
		</table>
	</form>
</div>

<div class="box_bottom"></div>
<div class="overlay" id="overlay">
    <!-- here is the content for overlay, can be anything -->
    <h2 style="margin:10px 0">Help! <em>Using the Portfolio Plugin.</em></h2>
    <p>
            <strong>Edit an Item</strong><br />
            <span class="help">This allows you to edit a portfolio item in your gallery.</span><br /><br />
            <strong>Item Name</strong><br />
            <span class="help">The name (or title) of your portfolio item.</span><br /><br />
            <strong>Url</strong><br />
            <span class="help">A link which the user can click on to find out more about that perticular portfolio item.</span><br /><br />
            <strong>Description</strong><br />
            <span class="help">A summary description of the portfolio image.</span><br /><br />
            <strong>Picture Name</strong><br />
            <span class="help">The name of the image, minus the extension and dot (.).</span><br />
	    <span class="help"><strong>Note:</strong> The image must be uploaded to the <strong>[serverroot]/static/portfolio/</strong> directory.</span><br /><br />
            <strong>Picture Extension</strong><br />
            <span class="help">The type of image, for example: png, jpg, or gif.</span><br />
	    <span class="help"><strong>Note:</strong> The extension must be the same as the extension of the image, ie after the dot (.). For example image.png has an extension of png, and flower.jpg has an extension of jpg.</span><br /><br />
    </p>
</div>
